package com.itheima.bank;

import org.apache.catalina.webresources.CachedResource;

/**
 * 模拟 门面模式
 */
public class BankFacade {

    //实际上,是很复杂的, 是跨多行代码,跨子系统的
    public void openAccountAndCreditCard() {
        openAccount();
        oauth();
        openCreditCard();
    }


    public void openAccount() {
        System.out.println(
                "开户。。。。。1000行代码"
        );
    }

    public void oauth() {
        System.out.println("认证。。。。2000行代码");
    }

    public void openCreditCard() {
        System.out.println("开通信用卡。。。。2000行代码");
    }

    public static void main(String[] args){
        BankFacade bankFacade=new BankFacade();
        bankFacade.openAccountAndCreditCard();
    }
}
